/*package com.utils.spring.config;

import java.io.IOException;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.github.jarod.qqwry.IPZone;
import com.github.jarod.qqwry.QQWry;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Configuration
public class QQWryConfiguration {
	
	
	
	@Bean(name="qqwry")
	public QQWry getQQWry(){
		QQWry qqwry = null;
		try {
			qqwry = new QQWry();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		log.info("qqwry:"+qqwry);
		
		return qqwry;
	}
	
	public static void main(String[] args) {
		QQWry qqwry = null;
		try {
			
			qqwry = new QQWry();
			System.out.println(qqwry);
			long start = System.currentTimeMillis();
			String myIP = "118.194.240.59";
//			String myIP = "117.136.0.160";
			IPZone ipzone = qqwry.findIP(myIP);
			System.out.printf("%s, %s cosumeTime:%s", ipzone.getMainInfo(), ipzone.getSubInfo(),System.currentTimeMillis()-start);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}
*/